package luogu;

import java.util.Scanner;

public class Main1028 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] dp = new int[n + 1];
        for (int i = 1; i <=n ; i++) {
            dp[i] = 1;
            for (int j = 1; j <=i/2 ; j++) {
                dp[i]+=dp[j];
            }
        }
        System.out.println(dp[n]);
    }
}
